package com.store_pro.storeException;


import com.store_pro.enums.ResultEnum;

/**
 * 自定义异常类
 *
 * @author 伊怀良
 */
public class ShellException extends RuntimeException {
    private Integer code;

    public ShellException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }

    public ShellException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
